var Service = require('node-windows').Service

// 创建一个新的变量
var svc = new Service({
	name: 'up moduleV2.0.0',
	// script: require('path').join(__dirname, 'helloworld.js'),
	script: 'E:\\bdproject\\witserial-up\\index.js',
})

// Listen for the "uninstall" event so we know when it's done.
svc.on('uninstall', function () {
	console.log('卸载完成!')
	console.log('服务是否存在: ', svc.exists)
})

// Uninstall the service.
svc.uninstall()
